<script src="js/proinfo/purchase/applyerSubmitPage.js"></script>
<section id="main-content">
    <section class="wrapper">
        <!--state overview end-->
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        请购信息【调配清单确认】
                    </header>
                    <div class="panel-body">
                        <div class="bio-row">
                            <p>
                                <span>项目名称</span>{{headerMap.proName}}</p>
                        </div>
                        <div class="bio-row">
                            <p>
                                <span>申请人</span>{{headerMap.applyManname}}</p>
                        </div>
                        <div class="bio-row">
                            <p>
                                <span>申请时间</span>{{headerMap.applyTime}}</p>
                        </div>
                        <div class="bio-row">
                            <p>
                                <span>申请用途</span>{{headerMap.useFul}}</p>
                        </div>
                        <div class="bio-row line-row">
                            <p>申请说明</p>
                            <p>{{headerMap.descriptor}}</p>
                        </div>
                    </div>
                </section>
                <section class="panel hdproc" style="display: none;">
                    <header class="panel-heading">
                        项目采购申请*
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">大类</label>
                            <div class="col-sm-10">
                                <select class="form-control" certus_required_polyfill ng-model="applyItem.bigClassCode"
                                    ng-change="sbchanged(applyItem.bigClassCode)" ng-disabled="bbbbb">
                                    <option ng-repeat="x in select.bigClassSelect" value="{{x.code}}">
                                        {{x.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm" ng-show="sbshow">
                            <label class="col-sm-2 control-label">资产类目</label>
                            <div class="col-sm-10">
                                <select class="form-control" certus_required_polyfill ng-model="applyItem.commodityCateCode"
                                    ng-disabled="bbbbb">
                                    <option ng-repeat="x in select.cateCodeSelect" value="{{x.code}}">
                                        {{x.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm" ng-show="sbshow">
                            <label class="col-sm-2 control-label">资产类别</label>
                            <div class="col-sm-10">
                                <select class="form-control" certus_required_polyfill ng-model="applyItem.commodityClassCode"
                                    ng-disabled="bbbbb">
                                    <option ng-repeat="x in select.classCodeSelect" value="{{x.code}}">{{x.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm" ng-show="sbbushow">
                            <label class="col-sm-2 control-label">类型说明</label>
                            <div class="col-sm-10">
                                <input type="text" certus_required_polyfill class="form-control" ng-model="applyItem.typeMark"
                                    ng-disabled="bbbbb">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" certus_required_polyfill class="form-control" ng-model="applyItem.name">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">品名及规格</label>
                            <div class="col-sm-10">
                                <input type="text" certus_required_polyfill class="form-control" ng-model="applyItem.descAndSpec">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">数量</label>
                            <div class="col-sm-10">
                                <input type="text" certus_an_limit_length_num="50" certus_required_polyfill class="form-control"
                                    ng-model="applyItem.quantity">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">单价</label>
                            <div class="col-sm-10">
                                <input type="text" certus_an_limit_length_num="50" certus_required_polyfill class="form-control"
                                    ng-model="applyItem.singlePrice">
                            </div>
                        </div>
                        <div class="form-group customerForm" ng-if="applyItem && applyItem.singlePrice && applyItem.quantity">
                            <label class="col-sm-2 control-label">总价</label>
                            <div class="col-sm-10">
                                <input type="text" certus_an_limit_length_num="50" certus_required_polyfill class="form-control"
                                    ng-model="applyItem.estimatedAmount = applyItem.singlePrice*applyItem.quantity "
                                    value="{{applyItem.singlePrice*applyItem.quantity}}" disabled>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-10">
                                <textarea class="form-control"  maxlength="120"  certus_required_polyfill ng-model="applyItem.remark"></textarea>
                            </div>
                        </div>
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info" onclick="hdproc();">取消</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info" ng-click="applyItemSubmitThird()">提交</a>
                        </p>
                    </div>
                </section>
                <section class="panel">
                    <header class="panel-heading add-heading">
                        采购申请清单
                    </header>
                    <div class="panel-body">
                        <div id="proc3Container" class="dlshouwen-grid-container"></div>
                    </div>
                </section>
                <section class="panel">
                    <header class="panel-heading add-heading">
                        资产库申请清单
                    </header>
                    <div class="panel-body">
                        <div id="library3Container" class="dlshouwen-grid-container"></div>
                    </div>
                </section>
                <section class="panel">
                    <div class="panel-heading">
                        审批记录
                    </div>
                    <div class="panel-body">
                        <ul class="tp-ulst">
                            <li>
                                <span>人员姓名 </span><span>修改时间</span><span>处理结果</span>
                            </li>
                            <div ng-repeat="ss in processs">
                                <li>
                                    <span>{{ss.USER}}</span><span>{{ss.time | date:'yyyy-MM-dd hh:mm'}}</span><span>{{getsssbbb(ss.lastStatus)}}，{{ss.msg}}</span>
                                </li>
                            </div>
                        </ul>
                    </div>
                </section>
                <section class="panel">
                    <header class="panel-heading">
                        审批意见
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">

                            <textarea class="form-control"  maxlength="120"  ng-model="submmitData.purchaseStepEntity.opinionMsg"></textarea>

                        </div>

                    </div>
                </section>
                <section class="panel">
                    <div class="panel-body">
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-success btn-l10" ng-click="approvalApply()">同意</a>
                            <!-- <a href="javascript:void(0);" class="button-next btn btn-danger ">不通过</a> -->
                        </p>
                    </div>
                </section>
            </div>
        </div>
    </section>
</section>